<template>
  <div>
    <div class="list-wrapper">
      <div class="list-block-first" @click="toGitDetail">
        <div class="list-img">
          <img src="/static/tabs/git.png" style="width: 100%; height: 100%;" mode="scaleToFill" />
        </div>
        <div class="list-text">
          <span>百元礼物</span>
        </div>
      </div>
        <div class="list-block-first" @click="toHeartDetail">
        <div class="list-img">
          <img src="/static/tabs/heart.png" style="width: 100%; height: 100%;" mode="scaleToFill" />
        </div>
        <div class="list-text">
          <span>特别关心</span>
        </div>
      </div>
        <div class="list-block-first" @click="toPhotoDetail">
        <div class="list-img">
          <img src="/static/tabs/photo.png" style="width: 100%; height: 100%;" mode="scaleToFill" />
        </div>
        <div class="list-text">
          <span>纪念相册</span>
        </div>
      </div>
        <div class="list-block-first" @click="toGoodDetail">
        <div class="list-img">
          <img src="/static/tabs/good.png" style="width: 100%; height: 100%;" mode="scaleToFill" />
        </div>
        <div class="list-text">
          <span>智能推荐</span>
        </div>
      </div>
        <div class="list-block-first" @click="toTalkDetail">
        <div class="list-img">
          <img src="/static/tabs/talk.png" style="width: 100%; height: 100%;" mode="scaleToFill" />
        </div>
        <div class="list-text">
          <span>讨论问答</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    toGitDetail () {
      console.log('toGitDetail')
    },
    toHeartDetail () {
      this.$router.push('/pages/case/main')
    },
    toPhotoDetail () {
      console.log('toPhotoDetail')
    },
    toGoodDetail () {
      console.log('toGoodDetail')
    },
    toTalkDetail () {
      console.log('toTalkDetail')
    }
  }
}
</script>

<style lang="scss" scoped>
@import '../../style/listBlock.scss';
.list-wrapper {
    width: 100%;
    height: 100px;
    // background-color: red;
    display: flex;
    margin-top: 20px;
    .list-block-first {
        @include listBlock;
        .list-img {
            @include imgBlock;
        }
        .list-text {
            text-align: center;
            span {
                @include listText;
            }
        }
    }
}
</style>
